﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CinemaMaestro.DataLayer.Contracts.Entities
{
    public class Screening: IEntity
    {
        public Screening()
        {
            this.Reservations = new HashSet<Reservation>();
            this.Sales = new HashSet<Sale>();
        }

        public int Id { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public Double Price { get; set; }
        public Double DiscountedPrice { get; set; }

        public virtual Movie Movie { get; set; }
        public virtual Room Room { get; set; }
        public virtual Language Language { get; set; }
        public virtual ICollection<Reservation> Reservations { get; set; }
        public virtual ICollection<Sale> Sales { get; set; }
    }
}
